package com.wuliang.generate.search.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

import javax.persistence.Index;

@Document(indexName = "emp")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp {

    private String empId;
    private String name;
    private String sex;
    private String mobile;
    private String deptName;
    private String provice;
    private String city;
    private String area;
    private String address;
    private String content;
    private int age;
    private int salary;
}
